package org.carl.aspectj.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringHelper {
	public static ThreadLocal<ApplicationContext> applicationContext;

	public static void init() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("classpath*:spring/spring-*.xml");
		applicationContext = new ThreadLocal<>();
		applicationContext.set(ac);
	}

	static {
		init();
	}
}
